package com.ds.smartstudio.controller;


import com.ds.smartstudio.common.Constants;
import com.ds.smartstudio.common.Result;
import com.ds.smartstudio.service.SendMessageService;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;

@RestController
@RequestMapping("/smartstudio/sendMessage")
public class SendMessageController {
    @Autowired
    SendMessageService sendMessageService;

    @GetMapping
    public void message(
            @ApiParam(value = "手机号")
            @RequestParam String tel
    ) throws IOException {
        sendMessageService.messageSend(tel);
    }

}
